<?php
namespace app\common\model;

use think\Model;

class OrderOperate extends Model{

    public static function log($admin_id,$order_id,$state,$message=''){
        return self::create([
            'op_user'=>$admin_id,
            'order_id'=>$order_id,
            'action'=>$state,
            'message'=>$message,
            'add_time'=>time()
        ]);
    }
}